﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.EntityModel;
using System.Data.EntityClient;
using System.Data.Entity.ModelConfiguration;
using System.Data.SqlClient;

public partial class Admin_Emprego_Cargo : System.Web.UI.Page
{
        

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAddAreaAtuacao_Click(object sender, EventArgs e)
    {
        webWAddArAtuacaoCargo.Hide = false;
        grvEmpregoCargo.Visible = false;
        EntityDataSourceEmpAreaAtuacao.DataBind();
        
    }

    protected void btnFechar_Click(object sender, EventArgs e)
    {
        webWAddArAtuacaoCargo.Hide = true;
        grvEmpregoCargo.Visible = false;
        lblVisualizaAreaAtuacao.Visible = false;        
        grvGerenciaCargo.Visible = false;
            
    }

    protected void Button2_Click(object sender, EventArgs e)
    {

    }
    
    protected void btnWebWindowVisArAtuacao_Click(object sender, EventArgs e)
    {   
        WebWindowVisualizaAreaAtuacao.Hide = false;
        webWindowAddNovoCargo.Hide = true;
        lblVisualizaAreaAtuacao.Visible = true;
        grvEmpregoCargo.Visible = true;
        //webWAddArAtuacao.Hide = true;
            
    }
    protected void btnFecharwebWindowVisAAtuacao_Click(object sender, EventArgs e)
    {
        WebWindowVisualizaAreaAtuacao.Hide = true;
    }
    protected void btnNovoCargo_Click(object sender, EventArgs e)
    {
        webWindowAddNovoCargo.Hide = false;
        lblAreaDeAtuacao.Visible = true;
        lblNomeAtuacao.Visible = true;
        lblNomeCargo.Visible = true;
        lblAddNovoCargo.Visible = true;
        txtNomeAtuacao.Visible = true;
        txtNomeCargo.Visible = true;
        ddlAreaDeAtuacao.Visible = true;
        btnCancelCargo.Visible = true;
        btnAddNovoCargo.Visible = true;
    }
    protected void btnCancelCargo_Click(object sender, EventArgs e)
    {
        //webWindowAddNovoCargo.Hide = true;
        lblAreaDeAtuacao.Visible = false;
        lblNomeAtuacao.Visible = false;
        lblNomeCargo.Visible = false;
        lblAddNovoCargo.Visible = false;
        txtNomeAtuacao.Visible = false;
        txtNomeCargo.Visible = false;
        ddlAreaDeAtuacao.Visible = false;
        btnCancelCargo.Visible = false;
        btnAddNovoCargo.Visible = false;
    }
    protected void btnGerenciarCargo_Click(object sender, EventArgs e)
    {
        grvGerenciaCargo.Visible = true;
    }

    private void carregaDdlAreaAtuacao() 
    {
        

    }

}